package top.superflow.server.exception

import org.springframework.web.bind.annotation.{ControllerAdvice, ExceptionHandler, ResponseStatus}
import org.springframework.web.bind.MissingServletRequestParameterException
import org.springframework.web.bind.annotation.ExceptionHandler
import javax.servlet.http.HttpServletResponse
import java.io.IOException

import top.superflow.log.Loggable

@ControllerAdvice
class ServerExceptionHandler extends Loggable{



  @ExceptionHandler(Array(classOf[Throwable]))
  def processMethod(ex: Throwable): Unit = {
    logger.error(ex.getMessage, ex)
  }

}
